package com.atXiao.food.service;

import com.atXiao.food.reqbody.category.CategoryVo;
import com.atXiao.food.rspbody.RspBody;
import com.atXiao.food.rspbody.category.CategoryItem;

import java.util.List;

/**
 * @author: lixiaoxiao
 * @date: 2023/11/23 10:06
 * @version: 1.0
 * @desc: 分类列表数据查询
 */
public interface CategoryService {

    /**
     * 查询首页菜谱分类
     *
     * @return
     */
    List<CategoryItem> getRecipeCategoryList();


    /**
     * 添加分类列表
     *
     * @param categoryVo
     */
    RspBody addCategory(String trace, CategoryVo categoryVo);

    /**
     * 删除分类信息
     *
     * @param trace
     * @param categoryVo
     */
    RspBody deleteCategory(String trace, CategoryVo categoryVo);

    /**
     * 修改分类信息
     *
     * @param trace
     * @param categoryVo
     */
    RspBody updateCategory(String trace, CategoryVo categoryVo);


}
